<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript">
function doQuery() {
	document.form1.action = "${path}/business/poldetail/index/approvelist";
	document.form1.submit();
}
$(function() {
	//fixTable.FixTable("mytable");
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
})
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						最近承保保单(30天内)
						<div class="tools-btn">
							<a href="#" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
							<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">
								<tr>
									<td align="right">
											投保单号：
										</td>
										<td>
											<input name="appno" type="text" size="17" value="${appno }" />
										</td>
										<td align="right">
											保单号：
										</td>
										<td>
											<input name="conno" type="text" size="17" value="${conno}" />
										</td>
									<td align="right">
										<input name="Input" type="button" class="linkbtn2" value="查  询"
											onclick="doQuery()" /> 
									</td>
									</tr>
									<tr>
										<td align="right">
											投保人姓名：
										</td>
										<td>
											<input name="cname" type="text" value="${cname }" size="17" />
										</td>
										<td align="right">
										是否已发佣：
										</td>
										<td>
										<select id="premium" name="premium">
											<option value="1" <c:if test="${premium==1 }">selected</c:if>>
												已发佣
											</option>
											<option value="0" <c:if test="${premium==0 }">selected</c:if>>
												未发佣
											</option>
										</select>
										</td>
									</tr>
							</table>
						</div>
						<!-- 查詢列表 -->
						<div id="mylist" style="height: 365px; overflow: scroll;" class="dlist">
							<table id="mytable" cellpadding="0" cellspacing="0"
								class="dg_borderstyle  trStyleTable"
								style="margin-top: 0px; text-align: center; width: 150%">
								<tr>
									<th width="40px">
										序号
									</th>
									<th>
										<span>投保单号</span>
									</th>
									<th>
										<span>保单号</span>
									</th>
									<th style="min-width: 120px;max-width: 120px;">
										<span>供应商</span>
									</th>
									<th width="60px">
										<span>投保人名称</span>
									</th>
									<th style="min-width: 100px;max-width: 120px;">
										<span>受理机构</span>
									</th>
									<th style="min-width: 120px;max-width: 120px;">
										<span>险种</span>
									</th>
									<th width="70px">
										<span>保单金额</span>
									</th>
									<th width="70px">
										<span>FYB</span>
									</th>
									<th width="70px">
										<span>价保</span>
									</th>
									<th width="60px">
										<span>${temp == 'accept'?'投保单状态':'保单状态'}</span>
									</th>
									<th width="60px">
										<span>发佣状态</span>
									</th>
								</tr>
								<c:forEach items="${pagination.resultList}" var="list">
									<tr>
										<td>
											${list.ROWINDEX}
										</td>
										<td>
											<span><A
												href="${path}/business/poldetail/index/policyinfo?contractid=${list.CONTRACTID }">
													${!empty(list.APPLICATIONNO)?list.APPLICATIONNO:'未知'}</A> </span>
										</td>

										<td>
											<span>${list.CONTRACTNO}</span>
										</td>

										<td>
											<span>${list.PROVIDERABBR}</span>
										</td>
										<td>
											<span>${list.CUSTOMERNAME}</span>
										</td>
										<td>
											<span>${list.BRANCHNAME}</span>
										</td>
										<td>
											<span>${list.PRODUCTNAME}</span>
										</td>
										<td>
											<span>${list.ACCEPTAMOUNT}</span>
										</td>
										<td>
											<span>${list.FYB}</span>
										</td>
										<td>
											<span>${list.VALUEPREM}</span>
										</td>
										<td>
											<span>${list.CONTRACTSTATUS}</span>
										</td>
										<td>
											<span>
												${list.COMS!=0&&list.COMS!=1&&list.COMS!=2?'已发佣':'未发佣'} </span>
										</td>
									</tr>
								</c:forEach>
							</table>
						</div>
						<!----------- 翻页导航 ------------------>
						<c:if test="${not empty pagination.multiPage}">
							<div class="dg_pagerstyle">
								<div class="pageinfo">
									第${pagination.page }页 | 共${pagination.totalPages
									}页/${pagination.totalRows }条记录
								</div>
								<div class="pagebtn">
									${pagination.multiPage}&nbsp;
								</div>
							</div>
						</c:if>

					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>
